package com.wit.zhenghao.day13;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class Client {
    public static void main(String[] args) {
		try {
			Socket socket = new Socket("127.0.0.1", 6666);
			
			System.out.println("和服务器已经连上了。。。");
			OutputStream os = socket.getOutputStream();
			os.write('A');
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
